package com.tanhua.sso.test;

import com.tanhua.sso.MyApplication;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.stereotype.Controller;
import org.springframework.test.context.junit4.SpringRunner;

//@Controller
@RunWith(SpringRunner.class)
@SpringBootTest(classes = MyApplication.class)
public class controller {
    @Autowired
    private ServiceTest serviceTest;

//    public static void main(String[] args) {
//        test.method();
//    }
    @Test
    public void method(){
        System.out.println(serviceTest);
        serviceTest.method();
    }

}
